package org.wattdepot.cli.command;

import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;

//import static org.junit.Assert.assertTrue;
//import org.junit.Test;

/**
 * Test Kit for Power Generated for a given timestamp - checks that power returned is correct.
 * 
 * @author Remy Baumgarten
 * @author Kevin Chiogioji
 * 
 */

public class TestPowerGeneratedTime {
  /**
   * Test Method.
   * 
   * @throws Exception -
   */
  @Test
  public void correctEnergy() throws Exception {
    PowerGeneratedTime power = new PowerGeneratedTime();
    List<String> args = new ArrayList<String>();
    args.add("consumed");
    args.add("SIM_KAHE_2");
    args.add("2009-10-31T10:10:10.000-10:00");
    assertTrue("Checking power generated for SIM_KAHE_2 at 2009-10-31T10:10:10.000-10:00", power
        .doCommand(args).contains("0.0"));
  }
}
